Skip to content

Conversation

aliceboone
Copy link

Assignment Submission: Exquisite React

Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions.

Reflection

Prompt Response
Define in your own words: What does "state" in React mean? How do we use it? State is an object that stores a component's dynamic data and determines how it behave, it is used within a class component.

Describe the relationships between the components on a high-level: which components were siblings? Which components were nested within each other? | Game was nested in the app, the other components were nested inside Game and were all siblings of each other.

How did this project differ from in-class examples? | All three sibling components needed access to some of state that was inside Game.

How was this project similar to in-class examples? | Using state and props are similar.

Copy link

@CheezItMan CheezItMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done Alice you hit the learning goals here. Well done. You have a very functional Exquisite Corpse game and made all the tests pass.

Comment on lines +22 to +28
const formatLine = FIELDS.map((field) => {
if (field.key) {
return line[field.key];
} else {
return field;
}
}).join(' ');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything in here should have a key as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants